package com.nlx.notes.module.core.enums.error;

import com.nlx.notes.module.core.consts.ErrorCodeConst;
import com.nlx.notes.support.handler.exception.ErrorCode;
import lombok.Getter;

@Getter
public enum AccountBookCodeEnum implements ErrorCode {

    ACCOUNT_BOOK_ADD_ERROR(1, "账本添加失败"),
    ;

    private final int code;

    private final String message;

    AccountBookCodeEnum(int code, String message) {
        this.code = ErrorCodeConst.LOGIN_ERROR_CODE_PREFIX + code;
        this.message = message;
    }

}
